package com.neouton.crm.prm.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.neouton.crm.entity.SysUserEntity;
import com.neouton.crm.prm.entity.ProjectReturnedMoneyVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 巾凡
* @description 针对表【project_returned_money(项目回款表)】的数据库操作Mapper
* @createDate 2022-12-05 09:56:38
* @Entity com.neouton.prm.entity.ProjectReturnedMoney
*/
@Mapper
public interface ProjectReturnedMoneyMapper {

    /**
     *
     * @param page
     * @param record
     * @return
     */
    IPage<ProjectReturnedMoneyVO> queryReturnedMoneyList(@Param("page") IPage page, @Param("record") ProjectReturnedMoneyVO record);

    List<ProjectReturnedMoneyVO> queryReturnedMoneyList(@Param("record") ProjectReturnedMoneyVO record);

    List<ProjectReturnedMoneyVO> queryInfoOfReturnedMoney(@Param("contractNumber") String contractNumber);

    List<ProjectReturnedMoneyVO> queryInfoByContractNumber(@Param("contractNumber") String contractNumber);

    List<SysUserEntity> getUserInformation();

    int updateFlagById(@Param("list")List<Integer> list);

    int cancelFlagById(@Param("list")List<Integer> list);

    int updateFlagByPrimaryKey(@Param("id")Integer id);

    int updateReturnedMoney(@Param("record") ProjectReturnedMoneyVO record);

    int deleteByPrimaryKey(Long id);

    int insert(ProjectReturnedMoneyVO record);

    int insertSelective(ProjectReturnedMoneyVO record);

    ProjectReturnedMoneyVO selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ProjectReturnedMoneyVO record);

    int updateByPrimaryKey(ProjectReturnedMoneyVO record);

}
